<?php if (!defined("RUNTIME")) exit();  /*a:5:{s:51:"D:\wamp64\www\foxcms\app\admin\view\index\home.html";i:1746044943;s:52:"D:\wamp64\www\foxcms\app\admin\view\foxcms_home.html";i:1735316111;s:44:"D:\wamp64\www\foxcms\app\admin\view\css.html";i:1735316111;s:52:"D:\wamp64\www\foxcms\app\admin\view\footed-copy.html";i:1735316111;s:47:"D:\wamp64\www\foxcms\app\admin\view\script.html";i:1735316111;}*/ ?>
<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php echo xn_cfg('base.sys_name'); ?></title>
<link rel="stylesheet" href="<?php echo htmlentities($staticPath); ?>css/foxui-1.32.min.css" />
<link rel="stylesheet" href="<?php echo htmlentities($staticPath); ?>css/common.min.css" />
<link rel="stylesheet" href="<?php echo htmlentities($staticPath); ?>css/admin_common.css" />
    
<style>
	.column-5 {
		flex: 1 0 auto;
		width: 0;
		cursor: pointer;
	}

	.update-log .info a:link {
		color: #909399;
	}

	.update-log .info a:visited {
		color: #909399;
	}

	.update-log .info a:active {
		color: #909399;
	}

	.update-log .info a:hover {
		color: #2879fe;
	}
</style>

</head>
<body>
<div class="foxcms-container company-introduction-page-container">

    <div class="foxcms-header">
        <div class="foxcms-logo">
            <img style="width: 100px;" src="/static/images/foxcms_logo.svg">
        </div>
        <div class="foxcms-bar">
            <div class="foxcms-bar-left">
                <span class="foxui-text-primary"><?php echo htmlentities($dateTimeText); ?></span>
                <span class="foxui-text-dark">欢迎登录</span>
                <span class="foxui-text-dark"><?php echo htmlentities($basic['name']); ?>管理后台</span>
            </div>
            <div class="foxcms-bar-right">
                <div class="foxui-dropdown lang-select">
                    <?php if(sizeof($otherLangs) > 0): ?>
                    <button class="foxui-dropdown-handle foxui-dropdown-icon lang-btn" data-trigger="hover" data-lang="<?php echo htmlentities($curlang['lang']); ?>"><?php echo htmlentities($curlang['name']); ?></button>
                    <div class="foxui-dropdown-menu">
                        <ul class="foxui-dropdown-slide">
                            <?php foreach($otherLangs as $key=>$vo): ?>
                            <li class="foxui-dropdown-item" data-id="<?php echo htmlentities($vo['id']); ?>" data-lang="<?php echo htmlentities($vo['lang']); ?>" onclick="langHandover(this)"><?php echo htmlentities($vo['name']); ?></li>
                            <?php endforeach; ?>
                        </ul>
                    </div>
                    <?php else: ?>
                    <button class="foxui-dropdown-handle foxui-dropdown-icon lang-btn display-none" data-trigger="hover" data-lang="<?php echo htmlentities($curlang['lang']); ?>"><?php echo htmlentities($curlang['name']); ?></button>
                    <?php endif; ?>
                </div>
                <div class="item icon index">
                    <i class="foxui-icon-shouye-o"></i>
                </div>
                <div class="item role">
                    <div class="foxui-dropdown">
                        <button class="foxui-text foxui-dropdown-handle foxui-dropdown-icon" data-trigger="hover" id="barService">
                            <i class="foxui-icon-kefu-o"></i>
                        </button>
                    </div>
                    <div class="foxui-dropdown dropdown">
                        <button class="foxui-text foxui-dropdown-handle foxui-dropdown-icon" data-trigger="hover"><?php echo session("admin_auth.nickname"); ?></button>
                        <div class="foxui-dropdown-menu">
                            <ul class="foxui-dropdown-slide">
                                <li class="foxui-dropdown-item" data-id="1">个人中心</li>
                                <li class="foxui-dropdown-item" data-id="2">修改密码</li>
                                <li class="foxui-dropdown-item" data-id="3">更新缓存</li>
                                <li class="foxui-divided" data-id="4"></li>
                                <li class="foxui-dropdown-item" data-id="5">退出系统</li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="item icon logout">
                    <a onclick="logout()"><i class="foxui-icon-tuichu-o"></i></a>
                </div>
            </div>
        </div>
    </div>



    <div class="foxcms-main">

        <!--左侧第一栏菜单-->
        <div class="foxcms-nav">
            <ul>
                <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): if( count($menu)==0 ) : echo "" ;else: foreach($menu as $key=>$vo): ?>
                <li>
                    <a class="<?php if($pid == $vo['id']): ?>active<?php endif; ?>" href="<?php echo htmlentities($vo['name']); ?>">
                        <i class="foxui-<?php echo htmlentities($vo['icon']); ?>"></i>
                        <span><?php echo htmlentities($vo['title']); ?></span>
                    </a>
                </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>

        <div class="foxcms-article foxui-scroll-container">
            <div class="foxcms-content">
                <!-- page content -->
                

<div class="foxcms-content-inner">
	<!-- page content -->
	<div class="index-content">
		<div class="section section-panel">
			<div class="foxui-row">
				<div class="foxui-col-xs-12 foxui-col-sm-12">
					<div class="serve-info">
						<div class="title">
							<h2>
								<span><?php echo htmlentities($basic['name']); ?></span>
								<a href="<?php echo url('Config/base'); ?>?columnId=23">
									<i class="foxui-icon-bianji-o"></i>
								</a>
							</h2>
							<p><?php echo htmlentities($basic['url_prefix']); ?><?php echo htmlentities($basic['url']); ?></p>
						</div>
						<ul class="content">
							<li class="item">
								<span>服务器系统：</span>
								<strong><?php echo htmlentities($serverInfo['os']); ?></strong>
							</li>
							<li class="item">
								<span>文件上传限制：</span>
								<strong><?php echo htmlentities($serverInfo['fileUpload']); ?></strong>
							</li>
							<li class="item">
								<span>服务器环境：</span>
								<strong><?php echo htmlentities($serverInfo['webServer']); ?></strong>
							</li>
							<li class="item">
								<span>POST：</span>
								<strong><?php echo htmlentities((isset($serverInfo['postSize']) && ($serverInfo['postSize'] !== '')?$serverInfo['postSize']:'unknown')); ?></strong>
							</li>
							<li class="item">
								<span>服务器IP：</span>
								<strong><?php echo htmlentities($serverInfo['ip']); ?></strong>
							</li>
							<li class="item">
								<span>最大执行时间：</span>
								<strong><?php echo htmlentities($serverInfo['maxExTime']); ?></strong>
							</li>
				
							<li class="item">
								<span>PHP版本：</span>
								<strong><?php echo htmlentities($serverInfo['phpVersion']); ?></strong>
							</li>
							<li class="item">
								<span>MYSQL版本：</span>
								<strong><?php echo htmlentities($serverInfo['mysqlVersion']); ?></strong>
							</li>
						</ul>
					</div>
				</div>
				<div class="foxui-col-xs-12 foxui-col-sm-12">
					<div class="foxui-row action-list">
						<div class="foxui-col-xs-8 foxui-col-sm-8">
							<a class="foxui-link action" href="<?php echo htmlentities($links['siteSet']); ?>">
								<div class="icon">
									<i class="foxui-icon-quanju-f"></i>
								</div>
								<span>网站设置</span>
							</a>
						</div>
						<div class="foxui-col-xs-8 foxui-col-sm-8">
							<a class="foxui-link action" href="<?php echo htmlentities($links['column']); ?>">
								<div class="icon">
									<i class="foxui-icon-neirong-f"></i>
								</div>
								<span>栏目管理</span>
							</a>
						</div>
						<div class="foxui-col-xs-8 foxui-col-sm-8">
							<a class="foxui-link action" href="<?php echo htmlentities($links['sitemapUrl']); ?>">
								<div class="icon">
									<i class="foxui-icon-ditu-f"></i>
								</div>
								<span>网站地图</span>
							</a>
						</div>
						<div class="foxui-col-xs-8 foxui-col-sm-8">
							<a class="foxui-link action" href="<?php echo htmlentities($links['countPath']); ?>">
								<div class="icon">
									<i class="foxui-icon-diqiu-f"></i>
								</div>
								<span>访客统计</span>
							</a>
						</div>
						<div class="foxui-col-xs-8 foxui-col-sm-8">
							<a class="foxui-link action" href="<?php echo htmlentities($links['baiduRecord']); ?>" target="_blank">
								<div class="icon">
									<i class="foxui-icon-baidu-f"></i>
								</div>
								<span>百度收录</span>
							</a>
						</div>
						<div class="foxui-col-xs-8 foxui-col-sm-8">
							<a class="foxui-link action" href="<?php echo htmlentities($links['htmlStatic']); ?>">
								<div class="icon">
									<i class="foxui-icon-kanban-f"></i>
								</div>
								<span>SEO设置</span>
							</a>
						</div>
						<!-- <div class="foxui-col-xs-8 foxui-col-sm-8">
							<a class="foxui-link action form-manage" href="<?php echo htmlentities($links['formList']); ?>">
								<div class="icon">
									<i class="foxui-icon-biaodan-f"></i>
								</div>
								<span>表单管理</span>
							</a>
						</div> -->
					</div>
				</div>
			</div>
		</div>
		<div class="section section-panel content-total margin-top-24">
			<div class="panel-title">
				<h3>
					<i class="foxui-icon-tongji-o"></i>
					<span>内容统计</span>
				</h3>
			</div>
			<div class="content">
				<div class="display-flex">
					<div class="column-5" id="articleUrl">
						<div class="column-inner">
							<div>
								<i class="foxui-icon-xinwen-o"></i>
							</div>
							<div>
								<h1><?php echo htmlentities($helpCenters['articleCount']); ?></h1>
								<p>文章内容</p>
							</div>
						</div>
					</div>
					<div class="column-5" id="imagesUrl">
						<div class="column-inner">
							<div>
								<i class="foxui-icon-tupian-o"></i>
							</div>
							<div>
								<h1><?php echo htmlentities($helpCenters['imagesCount']); ?></h1>
								<p>图集内容</p>
							</div>
						</div>
					</div>
					<div class="column-5" id="productUrl">
						<div class="column-inner">
							<div>
								<i class="foxui-icon-tupian-o"></i>
							</div>
							<div>
								<h1><?php echo htmlentities($helpCenters['productCount']); ?></h1>
								<p>产品内容</p>
							</div>
						</div>
					</div>
					<div class="column-5" id="videoUrl">
						<div class="column-inner">
							<div>
								<i class="foxui-icon-tupian-o"></i>
							</div>
							<div>
								<h1><?php echo htmlentities($helpCenters['videoCount']); ?></h1>
								<p>视频内容</p>
							</div>
						</div>
					</div>
					<div class="column-5" id="linkUrl">
						<div class="column-inner">
							<div>
								<i class="foxui-icon-youlian-o"></i>
							</div>
							<div>
								<h1><?php echo htmlentities($helpCenters['linkCount']); ?></h1>
								<p>友情链接</p>
							</div>
						</div>
					</div>
					<div class="column-5" id="adUrl">
						<div class="column-inner">
							<div>
								<i class="foxui-icon-guanggao-o"></i>
							</div>
							<div>
								<h1><?php echo htmlentities($helpCenters['adCount']); ?></h1>
								<p>广告数量</p>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="section section-panel visit-profile margin-top-24">
			<div class="panel-title">
				<h3>
					<i class="foxui-icon-fangke-o"></i>
					<span>访问概况</span>
				</h3>
			</div>
			<div class="content">
				<div class="foxui-tabs foxui-type-line foxui-position-right" id="viewTabs">
					<div class="foxui-tabs-header">
						<div class="foxui-tabs-item is-active">今日</div>
						<div class="foxui-tabs-item">昨日</div>
						<div class="foxui-tabs-item">近7日</div>
						<div class="foxui-tabs-item">近30日</div>
					</div>
					<div class="foxui-tabs-content">
						<div class="foxui-tabs-pane todayChart">
							<div class="foxui-row foxui-align-items-center">
								<div class="foxui-col-xs-6 foxui-col-sm-6">
									<div class="pv">
										<p>
											<span>总浏览量(PV)</span>
											<i class="foxui-icon-wenti-f pv-tip"></i>
										</p>
										<h1></h1>
									</div>
									<div class="uv">
										<p>
											<span>总访客量(UV)</span>
											<i class="foxui-icon-wenti-f uv-tip"></i>
										</p>
										<h1></h1>
									</div>
								</div>
								<div class="foxui-col-xs-18 foxui-col-sm-18">
									<div class="echart-box" id="todayChart"></div>
								</div>
							</div>
						</div>

						<div class="foxui-tabs-pane yesterdayChart">
							<div class="foxui-row foxui-align-items-center">
								<div class="foxui-col-xs-6 foxui-col-sm-6">
									<div class="pv">
										<p>
											<span>总浏览量(PV)</span>
											<i class="foxui-icon-wenti-f pv-tip"></i>
										</p>
										<h1></h1>
									</div>
									<div class="uv">
										<p>
											<span>总访客量(UV)</span>
											<i class="foxui-icon-wenti-f uv-tip"></i>
										</p>
										<h1></h1>
									</div>
								</div>
								<div class="foxui-col-xs-18 foxui-col-sm-18">
									<div class="echart-box" id="yesterdayChart"></div>
								</div>
							</div>
						</div>

						<div class="foxui-tabs-pane weekChart">
							<div class="foxui-row foxui-align-items-center">
								<div class="foxui-col-xs-6 foxui-col-sm-6">
									<div class="pv">
										<p>
											<span>总浏览量(PV)</span>
											<i class="foxui-icon-wenti-f pv-tip"></i>
										</p>
										<h1></h1>
									</div>
									<div class="uv">
										<p>
											<span>总访客量(UV)</span>
											<i class="foxui-icon-wenti-f uv-tip"></i>
										</p>
										<h1></h1>
									</div>
								</div>
								<div class="foxui-col-xs-18 foxui-col-sm-18">
									<div class="echart-box" id="weekChart"></div>
								</div>
							</div>
						</div>

						<div class="foxui-tabs-pane monthChart">
							<div class="foxui-row foxui-align-items-center">
								<div class="foxui-col-xs-6 foxui-col-sm-6">
									<div class="pv">
										<p>
											<span>总浏览量(PV)</span>
											<i class="foxui-icon-wenti-f pv-tip"></i>
										</p>
										<h1></h1>
									</div>
									<div class="uv">
										<p>
											<span>总访客量(UV)</span>
											<i class="foxui-icon-wenti-f uv-tip"></i>
										</p>
										<h1></h1>
									</div>
								</div>
								<div class="foxui-col-xs-18 foxui-col-sm-18">
									<div class="echart-box" id="monthChart"></div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="foxcms-content-copy">
  <p>
    <span>Copyright © 2021-<?php echo isset($nowtime) ? htmlentities($nowtime) : '现在'; ?></span>
    <strong>FOXCMS</strong>
    <span>版权所有</span>
  </p>
</div> 
            </div>
        </div>
    </div>
</div>
</body>
<script src="<?php echo htmlentities($staticPath); ?>js/jquery-3.6.0.min.js"></script>
<script src="<?php echo htmlentities($staticPath); ?>js/tinymce/tinymce.min.js"></script>
<script src="<?php echo htmlentities($staticPath); ?>js/echarts.min.js"></script>
<script src="<?php echo htmlentities($staticPath); ?>js/foxui-1.32.min.js"></script>
<script>
    //全局上传文件端口
    var UPLOAD_FILE_URL = "<?php echo url('upload_files/upload'); ?>";
    //图片粘贴下载
    var UPIMG_URL = "<?php echo url('upload_files/upimg'); ?>";
    var SERVER_URL = "/";
    //配置的后台路径
    var ADMIN_PATH = "/" + "<?php echo config('adminconfig.admin_path'); ?>";
    //静态文件路径
    var STATIC_PATH ="<?php echo config('adminconfig.static_path'); ?>";
    //退出地址
    var LOGOUT_PATH = "<?php echo logout_url(); ?>";
    //栏目模型地址
    var GETCOLUMMODELS_PATH = "<?php echo getColumModels_url(); ?>";
    //个人中心
    var ADMINEDIT_PATH = "<?php echo adminEdit_url(); ?>";
    //更新缓存
    var LOGINCLEARCACHE_PATH = "<?php echo loginClearCache_url(); ?>";
    //修改密码
    var ADMINUPDATEPASSWORD_PATH = "<?php echo adminUpdatePassword_url(); ?>";
    //循环生成静态html
    var SEOALLSITE_PATH = "<?php echo seoAllSite_url(); ?>";
    //单独静态生成
    var SEOADDDATABUILDDETAIL_PATH = "<?php echo seoAddDataBuildDetail_url(); ?>";
    //单独静态栏目生成
    var SINGLEALLSITE_PATH = "<?php echo singleAllSite_url(); ?>";
    //删除幻灯片
    var SLIDEDELETE_PATH = "<?php echo slideDelete_url(); ?>";
    //编辑幻灯片
    var SLIDEEDIT_PATH = "<?php echo slideEdit_url(); ?>";
    //后台首页地址
    var HOME_PATH = "<?php echo url('Index/index'); ?>";
    //切换语言
    var HANDOVER_LANG_PATH = "<?php echo url('handoverLang'); ?>";
</script>
<script src="<?php echo htmlentities($staticPath); ?>js/rich_text.js"></script>
<script>

    foxui.imagesManager.init({
        paginationOption: {
            type: 'solid',
            size: 'small',
            pageSize: 10,
            pageNum: 7,
            pageSizeList: [10, 20, 30, 50],
            isShowJump: true,
            isShowTotal: true,
            isShowSize: true
        },
        url: "<?php echo url('PicManager/picManager'); ?>",
    });

    foxui.videoManager.init({
        paginationOption: {
            type: 'solid',
            size: 'small',
            pageSize: 10,
            pageNum: 7,
            pageSizeList: [10, 20, 30, 50],
            isShowJump: true,
            isShowTotal: true,
            isShowSize: true,
        },
        url: "<?php echo url('VideoManager/videoManager'); ?>",
    });
</script>
<script src="<?php echo htmlentities($staticPath); ?>js/common.js"></script>
<script src="<?php echo htmlentities($staticPath); ?>js/admin_common.js"></script>

<script>
	$("#linkUrl").click(function() {
		window.location.href = "<?php echo htmlentities($helpCenters['linkUrl']); ?>";
	})
	$("#adUrl").click(function() {
		window.location.href = "<?php echo htmlentities($helpCenters['adUrl']); ?>";
	})
	$("#articleUrl").click(function() {
		window.location.href = "<?php echo htmlentities($helpCenters['similarArticleUrl']); ?>?model=article&type=1";
	})
	$("#productUrl").click(function() {
		window.location.href = "<?php echo htmlentities($helpCenters['similarArticleUrl']); ?>?model=product&type=1";
	})
	$("#imagesUrl").click(function() {
		window.location.href = "<?php echo htmlentities($helpCenters['similarArticleUrl']); ?>?model=images&type=1";
	})
	$("#videoUrl").click(function() {
		window.location.href = "<?php echo htmlentities($helpCenters['similarArticleUrl']); ?>?model=video&type=1";
	})
</script>
<script src="<?php echo htmlentities($staticPath); ?>js/index.js"></script>

<script>
	//访问概况
	function accessProfile(type) {
		let data;
		$.ajax({
			type: 'post',
			url: "<?php echo url('accessProfile'); ?>",
			dataType: 'json',
			async: false,
			data: {
				type: type
			},
			success: function(res) {
				if (res.code == 1) {
					data = res.data;
				}
			},
			error: function(res) {},
		});
		return data;
	}

	function todayChart() {
		let data = accessProfile(1);
		let pvList = data.pvList;
		let uvList = data.uvList;
		let labelList = data.labelList;
		let pvTotal = data.pvTotal;
		let uvTotal = data.uvTotal;
		$('.todayChart .pv h1').html(pvTotal);
		$('.todayChart .uv h1').html(uvTotal);
		// 今日
		let todayChart = echarts.init(document.getElementById('todayChart'));
		todayChart.setOption(chartOption({
			pvList,
			uvList,
			labelList
		}));
		window.onresize = () => {
			todayChart.resize();
		};
	}
</script>
<script>
	//初始化当日（默认）
	todayChart();
	foxui.tabs.$on(function({
		index,
		id
	}) {
		if (id === 'viewTabs') {
			if (index === 0) {
				//当日
				todayChart();
			} else if (index === 1) {
				let data = accessProfile(2);
				let pvList = data.pvList;
				let uvList = data.uvList;
				let labelList = data.labelList;
				let pvTotal = data.pvTotal;
				let uvTotal = data.uvTotal;
				$('.yesterdayChart .pv h1').html(pvTotal);
				$('.yesterdayChart .uv h1').html(uvTotal);
				// 昨日
				let yesterdayChart = echarts.init(document.getElementById('yesterdayChart'));
				yesterdayChart.setOption(chartOption({
					pvList,
					uvList,
					labelList
				}));
				window.onresize = () => {
					yesterdayChart.resize();
				};
			} else if (index === 2) {
				let data = accessProfile(3);
				let pvList = data.pvList;
				let uvList = data.uvList;
				let labelList = data.labelList;
				let pvTotal = data.pvTotal;
				let uvTotal = data.uvTotal;
				$('.weekChart .pv h1').html(pvTotal);
				$('.weekChart .uv h1').html(uvTotal);

				// 近7日
				let weekChart = echarts.init(document.getElementById('weekChart'));
				weekChart.setOption(chartOption({
					pvList,
					uvList,
					labelList
				}));
				window.onresize = () => {
					weekChart.resize();
				};
			} else if (index === 3) {
				let data = accessProfile(4);
				let pvList = data.pvList;
				let uvList = data.uvList;
				let labelList = data.labelList;
				let pvTotal = data.pvTotal;
				let uvTotal = data.uvTotal;
				$('.monthChart .pv h1').html(pvTotal);
				$('.monthChart .uv h1').html(uvTotal);

				// 近30日
				let monthChart = echarts.init(document.getElementById('monthChart'));
				monthChart.setOption(chartOption({
					pvList,
					uvList,
					labelList
				}));
				window.onresize = () => {
					monthChart.resize();
				};
			}
		}
	});
</script>


</html>
